
import Axios, { AxiosInstance } from 'axios'
import StoreEx from '../store/store-ex'


const baseURL: string = process.env.VUE_APP_API
const client = Axios.create({ baseURL: baseURL })

const api = {
    emp_list:function(){
        client.get('/data/emp-list.json').then(
            res => {
                console.log(res)
                StoreEx.pub('empList', res.data)
            }
        )
        
    }
}


export {api}